package com.dkm.orproject.dkmoa.service.flow;

import com.dkm.orproject.dkmoa.domain.OaDimissionFlow;
import com.dkm.orproject.dkmoa.domain.OaPersonnel;

import java.util.List;

/**
 * @ClassName : OaDimissionFlowService  //类名
 * @Description : 员工离职服务接口  //描述
 * @Author : 易嵘  //作者
 * @Date: 2020-08-14 10:43  //时间
 */
public interface OaDimissionFlowService {

    int add(OaDimissionFlow dimissionFlow, OaPersonnel personnelName);

    int sectionPass(Long pkDimissionId, OaPersonnel personnelName, String departmentLeadership);

    int sectionNoPass(Long pkDimissionId, OaPersonnel personnel, String formReason);

    int staffingPass(Long pkDimissionId, OaPersonnel personnel, String formReason);

    int staffingNoPass(Long pkDimissionId, OaPersonnel personnel, String formReason);

    int delete(Long id);

    int deleteAll(List<Long> ids);

    List<OaDimissionFlow> findAll(OaDimissionFlow dimissionFlow,Integer page,Integer limit,String startDate,String endDate);

    Long rowCount(OaDimissionFlow dimissionFlow,String startDate,String endDate);

    OaDimissionFlow findById(Long id);

    int getDimissionFlow(Long pkPersonnelId);
}
